package ooday01;
//car测试类
public class CarTest {
    public static void main(String[] args) {
        Car bm=new Car();
        bm.brand="宝马";
        bm.color="白";
        bm.price=600000.0;
        bm.capacity=5;
        bm.start();
        bm.run();
        bm.stop();


        Car ad=new Car();
        ad.brand="奥迪";
        ad.color="银";
        ad.price=500000.0;
        ad.capacity=10;
        ad.start();
        ad.run();
        ad.stop();

        Car vlo=new Car();
        ad.brand="沃尔沃";
        ad.color="白";
        ad.price=900000.0;
        ad.capacity=12;
        ad.start();
        ad.run();
        ad.stop();

        //1)创建了一个汽车对象
        //2)给所有成员变量赋默认值

        Car bc=new Car();
        bc.start();
        bc.run();
        bc.stop();

    }
}
